﻿namespace MEF_Test.Module.AudioStation
{
    using System;

    using MEF_Test.Bricks;
    using MEF_Test.Bricks.TemplateProvider;
    using MEF_Test.Contracts;

    public class AudioStationBrowserNodeViewModelFactory
    {
        private readonly TemplateProvider _templateProvider;

        public AudioStationBrowserNodeViewModelFactory(TemplateProvider templateProvider)
        {
            _templateProvider = templateProvider;
        }

        public BrowserNodeViewModel<AudioStationFileHandler> Create(AudioStationFileHandler fh)
        {
            var dataTemplate = _templateProvider.GetTemplate("browsernode.music.audiostation.mp3");
            IMediaHandler mediaHandler;
            throw new NotImplementedException("Inject dependency on the variable above. and replace null on the line above with a real detail data template");
            return new BrowserNodeViewModel<AudioStationFileHandler>(fh, mediaHandler, dataTemplate, null, null);
        }
    }

   
}